package com.fs.mjx.service;

import com.fs.mjx.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Set;

public interface UserService {
    List<User> getAll();
    User getOneByUserId(Integer userId);
    PageInfo<User> getUsersByPage(Integer currentPage,Integer pageSize);
    PageInfo<User> getUsersByPageForQuery(Integer currentPage,Integer pageSize,String address);

    boolean addOne(User user);
    boolean removeOne(User user);
    boolean modifyOne(User user);
    boolean removeByUserId(int UserId);
    boolean removeSome(Set<Integer> userIds);
    //模糊查询用户，以address为例
    List<User> getUserThatAddressLike(String address);
    //根据用户的姓名，电话，角色来进行模糊查询
    Set<User> getUserWithMultiCondition(String userName, String userPhone, String roleName);

}
